package com.legal.enums;

public enum UserExceptionMsgEnums {
    // 用户相关的枚举码
    NOLOGIN_ERR(405, "未登录"),
    LOGIN_ERR(406, "出错了，不正确的用户名或密码"),
    USER_NOT_EXIST(407, "用户不存在"),
    USER_EXIST(408, "用户已存在"),
    USER_LOCKED(409, "该用户已被锁定，无法登录"),
    UNUNIQUE_PHONE_EMAIL(410, "手机号或邮箱已存在"),

    CAPTCHA_ERROR(412, "无效的验证码"),
    //登录会话已过期，请重新发起授权
    LOGIN_EXPIRED(401, "登录会话已过期，请重新发起授权"),
    //请先完成微信授权确认
    LOGIN_CONFIRM(401, "请先完成微信授权确认"),
    NO_ACCOUNT(413, "该用户未开通余额支付功能"),
    NO_ENOUGH_BALANCE(415, "余额不足"),

    UPDATE_USER_BALANCE_FAIL(500, "修改用户余额失败");


    private final Integer code;
    private final String msg;

    UserExceptionMsgEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
